package com.fare.fdc.action;

import org.springframework.stereotype.Controller;

import com.fare.taluo.BaseFdcAction;

@Controller("priceMonitorAction")
public class PriceMonitorAction extends BaseFdcAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = 243844901017309640L;

	public void getXML() {
		String data;
		
		String xml = "<?xml version='1.0'?><chart  baseFont='Arial' baseFontSize='14' lineThickness='1'  borderColor='1D8BD1' borderThickness='2' divLineColor='000000'   divLineAlpha='30' showAlternateHGridColor='0' numVDivLines='10'   showValues='0'     lineColor='2c82f7' setAdaptiveYMin='1' showLabels='0'>"
				+ "<set  value='680' />"
				+ "<set  value='680' />"
				+ "<set  value='680' />"
				+ "<set  label='提前20天' value='680' showName='1'/>"
				+ "<set  value='700' />"
				+ "<set  value='800' />"
				+ "<set  value='820' />"
				+ "<set  value='600' />"
				+ "<set  value='500' />"
				+ "<set  value='480' />"
				+ "<set  value='680' />"
				+ "<set  value='680' />"
				+ "<set  value='680' />"
				+ "<set  label='提前19天' value='680' showName='1'/>"
				+ "<set  value='700' />"
				+ "<set  value='800' />"
				+ "<set  value='820' />"
				+ "<set  value='600' />"
				+ "<set  value='500' />"
				+ "<set  value='480' />"
				+ "<set  value='680' />"
				+ "<set  value='680' />"
				+ "<set  value='680' />"
				+ "<set  label='提前18天' value='680' showName='1'/>"
				+ "<set  value='700' />"
				+ "<set  value='800' />"
				+ "<set  value='820' />"
				+ "<set  value='600' />"
				+ "<set  value='500' />" + "<set  value='480' />" + "</chart> ";
		// data = "{\"xml\":\""+xml+"\"}";
		data = "{\"json\":" + "\"test\"" + ",\"xml\":\"" + xml + "\"}";
		super.toJSONOut(data);
	}
}
